<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Entity;

class User
{
    protected int $user_id = 0;

    protected int $room_id = 0;

    protected int $fd = 0;

    protected string $nickname = '';

    public function getUserId()
    {
        return $this->user_id;
    }

    public function setUserId(int $userId)
    {
        $this->user_id = $userId;
    }

    public function getRoomId(int $roomId)
    {
        $this->room_id = $roomId;
    }

    public function setRoomId(int $roomId)
    {
        $this->room_id = $roomId;
    }

    public function setFd(int $fd)
    {
        $this->fd = $fd;
    }

    public function getFd()
    {
        return $this->fd;
    }

    public function setNickname(string $nickname)
    {
        $this->nickname = $nickname;
    }

    public function getNickname()
    {
        return $this->nickname;
    }
}
